package com.spring.annotation.JavaBased;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by wangyg on 2017/1/10.
 */
@Configuration
public class StoreConfig {
	@Bean(name="stringStore",initMethod="init",destroyMethod = "destory")
	public Store getStringStore() {
		return new StringStore();
	}
}
